package com.demo.cms.dao.impl;

import com.demo.cms.dao.ArticleContentDao;
import com.demo.cms.model.ArticleContent;
import com.demo.core.dao.impl.base.BaseCoreDaoSupport;
import com.demo.core.model.support.GeneralExecuteModel;

public class ArticleContentDaoImpl extends BaseCoreDaoSupport<ArticleContent, Long>  implements ArticleContentDao {

	/**
	 * 目录空间 
	 */
	protected final static String ARTICLE_SPACE = "articleContentSpace.";
	/**
	 * 模型表名
	 */
	protected final static String TABLE_NAME = "T_CMS_ARTICLE_CONTENT";
	/**
	 * 模型表主键ID
	 */
	protected final static String TABLE_PK_NAME = "ID";
	
	@Override
	protected String nameSpace() {
		return ARTICLE_SPACE;
	}

	@Override
	protected void doInit(GeneralExecuteModel<Long> model) {
		model.setPk(TABLE_PK_NAME);
		model.setTable(TABLE_NAME);
	}
}
